package ch12_容器框架与泛型;

public class Product {
	private int id;
	private String name;
	private int inventory;
	
	public Product(int id,String name,int inventory) {
		this.id = id;
		this.name = name;
		this.inventory = inventory;
	}
	
	public void print() {
		System.out.printf("%-10d\t%-12s\t%d\n",id,name,inventory);
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getInventory() {
		return inventory;
	}
	public void setInventory(int inventory) {
		this.inventory = inventory;
	}
	
}
